# https://gitee.com/yueyinqiu5990/codes-for-tj10053104/blob/master/supplement1/question7/main.py


def _get_color(value: int) -> str:
    color = "赤橙黄绿青蓝紫"
    return color[value - 1]


def _main():
    input_string = input("三位数:")
    input_int = map(int, input_string)
    input_colr = map(_get_color, input_int)
    print("颜色串：", " ".join(input_colr))


if __name__ == "__main__":
    _main()
